package com.zhiyou100.serviceImpl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.LoginMapper;
import com.zhiyou100.model.ResultObject;
import com.zhiyou100.model.User;
import com.zhiyou100.service.LoginService;

@Service
public class LoginServiceImpl implements LoginService{

	@Autowired
	private LoginMapper mapper;

	public void insertUser(User user) {
		mapper.insertUser(user);
		
	}

	public User findUserByName(String name) {
		User user = mapper.findUserByName(name);
		return user;
	}

	public User findUser(Map<String, String> map) {
		User user = mapper.findUser(map);
		return user;
	}

	@Override
	public void findUserById(User user) {
		mapper.findUserById(user);
		
	}



	
}
